#ifndef APPOINTMENT_H
#define APPOINTMENT_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QTcpSocket>
#include <QVBoxLayout>
#include <QLabel>
#include <QMap>

class Appointment : public QWidget {
    Q_OBJECT

public:
    Appointment(QTcpSocket *socket, QWidget *parent = nullptr);

private slots:
    void onBookAppointmentButtonClicked();
    void onBackButtonClicked();

private:
    QLineEdit *patientIdEdit;
    QLineEdit *patientNameEdit;
    QLineEdit *departmentEdit;
    QLineEdit *doctorEdit;
    QLineEdit *dateEdit;
    QTcpSocket *tcpSocket;
};

#endif // APPOINTMENT_H
